﻿var MyEffect = {
    hover: function (selector, clsName) {
        $(selector).hover(
            function () {
                $(this).addClass(clsName);
            },
            function () {
                $(this).removeClass(clsName);
            }
        );
    }
};